﻿#include "LPMemroyManager.h"
#include "hardwaremonitor.h"

LPMemroyManager::LPMemroyManager( QWidget *parent)
    :IWidget(parent)
{
    m_pHardWareMonitor = new HardWareMonitor(this);
    SetWindowTitle(u8"内存监测");
    SetContentWidget(m_pHardWareMonitor);
    SetThemeStyle(Transparent);
}

LPMemroyManager::~LPMemroyManager()
{

}

void LPMemroyManager::showEvent(QShowEvent *event)
{
    Q_UNUSED(event);
    m_pHardWareMonitor->setFixedSize(m_pHardWareMonitor->width(),m_pHardWareMonitor->height());
}

void LPMemroyManager::resizeEvent(QResizeEvent *event)
{
    Q_UNUSED(event);
    m_pHardWareMonitor->setFixedSize(m_pHardWareMonitor->width(),m_pHardWareMonitor->height());
}


